import React from "react"
import Layout from "./src/components/Layout"
import store from "./src/store/index"
import { Provider } from "react-redux"
import axios from "axios"
import "antd/dist/antd.css"
axios.defaults.baseURL = "https://conduit.productionready.io/api"

export const wrapPageElement = arg => {
  return <Layout>{arg.element}</Layout>
}

export const wrapRootElement = arg => {
  return <Provider store={store}>{arg.element}</Provider>
}
